<html>
<head>
  <title>홍길동의 블로그</title>
  <%= stylesheet_link_tag 'blog' %>
</head>

<body>
  <h1><%= link_to "홍길동의 블로그", :action => 'index' %></h1>

  <div id="right-bar">
    <h3>카테고리</h3>
    <ul>
      <% for category in @categories -%>
      <li><%= link_to category.name,
                      :action => 'category',
                      :id => category %></li>
      <% end %>
    </ul>
    <h3>태그</h3>
    <div>
      <% for tag in @tags -%>
      <%= link_to tag.name, :action => 'tag', :id => tag %>
      <% end %>
    </div>
  </div>

  <div id="main">
    <%= yield %>
  </div>
</body>
</html>
